飞翔鸟[书].js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. var rule = {
  2. 类型: '小说',//影视|听书|漫画|小说
  3. title: '飞翔鸟[书]',
  4. host: 'https://www.fxnzw.com/',
  5. url: '/fxnlist/fyclass_fypage.html',
  6. searchUrl: '/fxnlist/**_fypage.html',
  7. searchable: 2,
  8. quickSearch: 0,
  9. filterable: 1,
  10. filter: '',
  11. filter_url: '',
  12. filter_def: {},
  13. headers: {
  14. 'User-Agent': 'MOBILE_UA',
  15. },
  16. timeout: 5000,
  17. hikerListCol: "text_1",
  18. hikerClassListCol: "text_1",
  19. //class_name: '全本',
  20. //class_url: '0',
  21. class_parse: '.nav&&ul&&li;a&&Text;a&&href;.*/(.*?)\.html',
  22. cate_exclude: '',
  23. play_parse: true,
  24. lazy: $js.toString(() => {
  25. let html = request(input);
  26. let title = pdfh(html, 'h1&&Text');
  27. let content = pdfh(html, '#content&&div:eq(-2)&&Html').replace(/\n/g, "").split("<br>").filter(v => v).slice(0).join("\n").replace(/&nbsp;/g, ' ').split('请记住:飞翔鸟中文小说网')[0];
  28. let ret = JSON.stringify({
  29. title,
  30. content
  31. });
  32. input = {parse: 0, url: 'novel://' + ret, js: ''};
  33. }),
  34. double: false,
  35. 推荐: '',
  36. 一级: '#CrListText;a&&Text;;a:eq(1)&&Text;a&&href',
  37. 二级: {
  38. 重定向: $js.toString(() => {
  39. log('执行重定向:' + MY_URL);
  40. // let html = request(MY_URL);
  41. MY_URL = pd(html, 'li.as&&a&&href', MY_URL);
  42. log('二级重定向到:' + MY_URL);
  43. html = request(MY_URL);
  44. }),
  45. title: 'h2&&Text',
  46. img: '#Lab_BookImg&&img&&src',
  47. desc: '#zhangx&&Text',
  48. content: '#CommentText&&Text',
  49. tabs: '#NclassTitle',
  50. lists: '#BookText&&ul&&li:not(:contains(中文阅读))',
  51. tab_text: 'body&&Text',
  52. list_text: 'body&&Text',
  53. list_url: 'a&&href',
  54. list_url_prefix: '',
  55. },
  56. 搜索: '*',
  57. }